//
//  ProtocolsCell.m
//  QoilPublic
//
//  Created by SunChao on 2018/1/27.
//  Copyright © 2018年 孙超. All rights reserved.
//

#import "ProtocolsCell.h"

@implementation ProtocolsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self.acceptBtn setImage:[UIImage imageNamed:@"2"] forState:UIControlStateNormal];
    [self.acceptBtn setImage:[UIImage imageNamed:@"1"] forState:UIControlStateSelected];
    self.acceptBtn.selected = YES;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tap)];
    [self.ProtocolsLabel addGestureRecognizer:tap];
    self.ProtocolsLabel.userInteractionEnabled = YES;
}
- (void)tap {
    
    NSLog(@"tap");
}
- (IBAction)buttonAction:(UIButton *)button {
    
    button.selected = !button.selected;
    [[NSNotificationCenter defaultCenter ]postNotificationName:@"buttonNotification" object:nil];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
